package com.dycx.api.controller.manage.system;

import com.dycx.common.RestResponse;
import com.dycx.system.dto.LogDTO;
import com.dycx.system.service.LogService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/manage/system/log")
public class LogController {

    @Resource
    private LogService logService;

    /**
     * 查询 分页查询
     **/
    @PostMapping("/getPage")
    public RestResponse<?> getPage(@RequestBody LogDTO logDto) {
        return RestResponse.success(logService.getPage(logDto));
    }

    /**
     * 查询 根据主键 id 查询
     **/
    @GetMapping("/getInfoById")
    public RestResponse<?> getInfoById(int logId) {
        return RestResponse.success(logService.getInfoById(logId));
    }

}
